function createDialogComplete(xhr, status, args) {
    if(!args.validationFailed) {
        createDialog.hide();
    }
}
function editDialogComplete(xhr, status, args) {
    if(!args.validationFailed) {
        editDialog.hide();
    }
}
